
package com.be.beadmin.material.service;

import com.be.beadmin.common.entity.PageEntity;
import com.be.beadmin.material.dto.input.PurchaseOrderDto;
import com.be.beadmin.material.dto.output.PurchaseOrderEx;
import com.be.beadmin.material.entity.PurchaseOrderTotal;
import org.springframework.data.domain.Page;

import java.util.ArrayList;
import java.util.List;

/**
* @description 服务接口
* @author zmy
* @date 2023-05-14
**/
public interface PurchaseOrderService {

    /**
    * 分页的查询接口
    * @param pageEntity
    * @return
    */
    Page<PurchaseOrderEx> getPurchaseOrderByPage(PageEntity pageEntity);

    Page<Object> getPurchaseOrderByPage2(PageEntity pageEntity);

    /**
    * @param purchaseOrderDto
    */
    void addPurchaseOrder(PurchaseOrderDto purchaseOrderDto);

    /**
    * @param purchaseOrderDto
    */
    void updatePurchaseOrder(PurchaseOrderDto purchaseOrderDto);

    /**
    * @param id
    */
    void delPurchaseOrder(String id);

    /**
    * 删除多个角色
    * @param ids
    */
    void delPurchaseOrders (List<String> ids);

    Page<Object> getPurchaseOrderDetailByPoId(PageEntity pageEntity,String purchaseOrderId,int type);

    void getPurchaseOrderData(ArrayList<PurchaseOrderTotal> purchaseOrderTotal);
}